package com.honeybees.framework.sso.session;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.alibaba.fastjson.annotation.JSONField;
import com.honeybees.framework.sso.vo.LoginUser;

/**
 * <dl>
 * <dt><b> 模拟 Session </b></dt>
 * <p>
 * <dd>功能描述</dd>
 * </dl>
 * <p>
 * Copyright (c) All rights reserved.
 * </p>
 *
 * @author 李远明
 * @version 2017-04-08 16:25
 * @since 2015-12-14 17:37:50
 */
public class MockSession implements Serializable {

    private static final long serialVersionUID = -7793667649821225888L;

    @Id
    private String id;
    /**
     * user.id, not userNo
     */
    private String userId;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;
    private String loginIP;
    private String rejectMsg;

    private LoginUser user;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getLoginIP() {
        return loginIP;
    }

    public void setLoginIP(String loginIP) {
        this.loginIP = loginIP;
    }

    public String getRejectMsg() {
        return rejectMsg;
    }

    public void setRejectMsg(String rejectMsg) {
        this.rejectMsg = rejectMsg;
    }

    public LoginUser getUser() {
        return user;
    }

    public void setUser(LoginUser user) {
        this.user = user;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

}
